# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-pem
pkgver=21.2.0
pkgrel=2
pkgdesc="Easy PEM file parsing"
url="https://pem.readthedocs.io/en/stable/"
arch="noarch"
license="MIT"
depends="python3 py3-twisted"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-certifi py3-openssl py3-pretend"
source="$pkgname-$pkgver.tar.gz::https://github.com/hynek/pem/archive/$pkgver.tar.gz"
builddir="$srcdir/pem-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="7e6f6d46bd1c8ab5c84b0edee182fbec7ae3c37e2005854ff1bc6f43cb47490a1f3bb0ac97cbc9e8c0ff830d4f22fcddd52f68206452a16ba862354a75491b18  py3-pem-21.2.0.tar.gz"
